home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scdocoutput_ps2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-06-30  |  1.5 KB  |  64 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SCDOCOUTPUT_PS2_H
  8. #define SCDOCOUTPUT_PS2_H
  9.  
  10. #include <vector>
  11.  
  12. #include <QFile>
  13. #include <QTextStream>
  14.  
  15. #include "scribusapi.h"
  16. #include "scpainterexbase.h"
  17. #include "scpageoutput_ps2.h"
  18. #include "scdocoutput.h"
  19.  
  20. class ScribusDoc;
  21. class Page;
  22.  
  23. class SCRIBUS_API ScDocOutput_Ps2 : public ScDocOutput
  24. {
  25. protected:
  26.  
  27.     QFile m_file;
  28.     QIODevice* m_device;
  29.     QTextStream m_stream;
  30.     ScribusDoc* m_doc;
  31.     std::vector<int> m_pageNumbers;
  32.     ScPs2OutputParams m_options;
  33.  
  34.     int m_status;
  35.     QString m_lastError;
  36.  
  37.     QString m_author;
  38.     QString m_creator;
  39.     QString m_title;
  40.  
  41.     QRect   m_clip;
  42.  
  43.     virtual void begin(void);
  44.     virtual void end(void);
  45.  
  46.     virtual ScPageOutput* createPageOutputComponent(int pageIndex);
  47.  
  48.     void closeTransforms(void);
  49.     bool initializeCmsTransforms(void);
  50.  
  51. public:
  52.     ScDocOutput_Ps2(ScribusDoc* doc, QString fileName, std::vector<int>& pageNumbers, QRect& clip, ScPs2OutputParams& options);
  53.     ~ScDocOutput_Ps2();
  54.  
  55.     void setAuthor(const QString& author) { m_author = author; }
  56.     void setCreateor(const QString& creator) { m_creator = creator; }
  57.     void setTitle(const QString& title) { m_title = title; }
  58.  
  59.     int status() { return m_status; }
  60.     QString lastError() { return m_lastError; }
  61. };
  62.  
  63. #endif
  64.